import * as types from './actionTypes';
import Immutable from 'seamless-immutable';

const initialState = Immutable({
    email: "",
    password:"",
    verifyCode:"",
});

export default function auth(state = initialState, action = {}) {
    switch (action.type) {
        case types.ON_CHANGE_INPUT:
            return state.set(action.key,action.value);
        default:
            return state;
    }
}
